//
//  SearchViewController.h
//  AmazingShopping
//
//  Created by Tan on 4/6/13.
//  Copyright (c) 2013 Tan Hoang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "ASIHTTPRequest.h"
#import "UIScrollView+SVPullToRefresh.h"
#import "UIScrollView+SVInfiniteScrolling.h"

@interface SearchViewController : UIViewController<UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate, ASIHTTPRequestDelegate>{
    BOOL isFromSearchResult;
    NSMutableArray *productArray;
    NSString *serverPath;
}

@property (weak, nonatomic) IBOutlet UISearchBar *searchBar;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) IBOutlet UIView *backButtonView;
@property (strong, nonatomic) IBOutlet UIView *titleView;
@property (strong, nonatomic) IBOutlet UILabel *keywordLabel;
@property (strong, nonatomic) IBOutlet UILabel *statusSearchLabel;

- (void)loadSearchBar;
- (void)unloadSearchBar;
- (void)initNavigatorBar;
- (IBAction)backButtonPressed:(id)sender;
- (void)searchMoreProduct;

@end
